package com.jkoss.dao.kc;

import com.jkoss.pojo.kc.Question;
import com.jkoss.pojo.kc.QuestionExample;
import com.jkoss.tool.Page;

import java.util.List;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

public interface QuestionMapper {
    int countByExample(QuestionExample example);

    int deleteByExample(QuestionExample example);

    int deleteByPrimaryKey(Integer qid);

    int insert(Question record);

    int insertSelective(Question record);

    List<Question> selectByExample(QuestionExample example);

    Question selectByPrimaryKey(Integer qid);

    int updateByExampleSelective(@Param("record") Question record, @Param("example") QuestionExample example);

    int updateByExample(@Param("record") Question record, @Param("example") QuestionExample example);

    int updateByPrimaryKeySelective(Question record);

    int updateByPrimaryKey(Question record);

    @Select("select * from t_question")
	List<Question> findByAll(Page<Question> page);
    @Select("select * from t_question where qid =#{qid}")
	Question findByOne(String qid);
    
	@Select("select * from t_question where kcmdelid =#{params.sbid}")
	List<Question> findBySome(Page<Question> page);
}